package kc0804;

import java.util.Random;

class FruitGenerator
  implements Generator<String>
{
  private String[] fruits = { "Apple", "Banana", "Pear" };
  
  public String next()
  {
    Random rand = new Random();
    return this.fruits[rand.nextInt(3)];
  }
}
